


add_requires("local_json")

target("autoload")
    set_kind("binary")
    add_files("autoload.cpp")
    add_files("cfg_merge.cpp")
    set_languages("c++11")
    add_packages("local_json")

    on_install(function (target)
        dhpath = path.join(target:installdir() , "dev_helper")
        os.mkdir(dhpath)

        os.cp(target:targetfile() , dhpath)
        os.cp("$(scriptdir)/conf.json" , dhpath)
        os.cp("$(scriptdir)/img" , dhpath)
    end)